package cn.iocoder.yudao.module.project.controller.admin.kismaterialreceipt.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 物料入库单新增/修改 Request VO")
@Data
public class KisMaterialReceiptSaveReqVO {

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22079")
    private String id;

    @Schema(description = "入库单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22079")
    private String receiptCode;

    @Schema(description = "物料入库日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "物料入库日期不能为空")
    private LocalDateTime receiptDate;

    @Schema(description = "供应商", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "供应商不能为空")
    private String supplier;

    @Schema(description = "审核标志", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "审核标志不能为空")
    private String auditMark;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编号不能为空")
    private String code;

    @Schema(description = "收料仓库", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "收料仓库不能为空")
    private String warehouse;

    @Schema(description = "物料长代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料长代码不能为空")
    private String materialCode;

    @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "物料名称不能为空")
    private String materialName;

    @Schema(description = "规格型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规格型号不能为空")
    private String specification;

    @Schema(description = "应收数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "应收数量不能为空")
    private Double receivableNum;

    @Schema(description = "实收数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "实收数量不能为空")
    private Double actualNum;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "单位不能为空")
    private String unit;

    @Schema(description = "源单单号")
    private String materialNumber;

    @Schema(description = "源单类型", example = "1")
    private String materialType;

    @Schema(description = "部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "部门不能为空")
    private String dept;

    @Schema(description = "业务员", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "业务员不能为空")
    private String operator;

    @Schema(description = "批号")
    private String batchNumber;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotEmpty(message = "备注不能为空")
    private String remark;

    @Schema(description = "日期")
    private String dateStr;

}